<?php
    $cs = Yii::app()->getClientScript();
    $cs->registerScriptFile(Html::jsUrl("underscore-min.js"));
    $cs->registerScriptFile(Html::jsUrl("backbone-min.js"));
    $cs->registerScriptFile(Html::jsUrl("tweet.js"));
    $cs->registerScriptFile(Html::jsUrl("bootbox.min.js"));
?>

<script>
    var tweetList = <? echo CJSON::encode(TweetCore::home_timeline())?>;
    var GET_TWEET_URL = '<?php echo $this->createUrl('/api/tweet/home_timeline')?>';
</script>

<script id="tweetTemplate" type="text/template">
    <?php 
        $this->renderPartial('/tweet/_tweetTemplate')        
    ?>
</script>

<script id="tweetTemplateExpanded" type="text/template">
    <?php 
        $this->renderPartial('/tweet/_tweetTemplateExpanded')        
    ?>
</script>



<div class="content-main js-content-main breakable">
    <div id="js-promptbird-below-black-bar-hook"></div>
    <div id="js-empty-timeline-recommendations-module-hook"></div>
    <div class="content-header js-stream-header"><div class="header-inner">
            <h2>
                <span class="content-header-buttons js-header-button-container"></span>


                <span class="js-stream-title">Tweets</span>&nbsp;<small class="view-toggler js-view-toggler"></small>
            </h2>

        </div></div>
    <div class="stream js-stream-manager-container">
        <div class="stream-manager js-stream-manager-container" id="home-stream-manager">
            <div class="stream-title"></div>
            <div class="stream-container">
                <div class="stream home-stream" data-component-term="stream" media="true">

                    <div class="js-stream-items stream-items" id="stream-items-id">
                        <!-- Content here-->
                    </div>
                    <div class="stream-loading">
                        <div class="stream-end-inner">
                            <span class="spinner" title="Loading..."></span>
                        </div>
                    </div></div>
            </div>
        </div>
    </div>
</div>